import com.service.CurriculumService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class) //启动spring容器
@ContextConfiguration(locations = {"classpath:applicationContext_mapper.xml",
        "classpath:applicationContext_service.xml"})
public class test3 {
    @Autowired
    CurriculumService service;
    @Test
    public void test1(){
        service.getCount();
    }
    @Test
    public void test2(){
        service.selectFindAll(1,1);
    }
}
